Restructuring.
[and.git] / My problems / Andy's big heart / generateInput.py
blobd894826c1b57572d702f52bbc3347f9dc8a32234
1 import random
3 x = []
4 y = []
6 random.seed()
8 for j in range(0, 1000):
10 x = []
11 y = []
12 while (len(x) < 3):
13 a = random.randint(-1000, 1000)
14 esta = False
15 for i in range(0, len(x)):
16 if x[i] == a:
17 esta = True
18 if not esta:
19 x.append(a)
21 while (len(y) < 3):
22 a = random.randint(-1000, 1000)
23 esta = False
24 for i in range(0, len(y)):
25 if y[i] == a:
26 esta = True
27 if not esta:
28 y.append(a)
32 s = str(x[0]) + " " + str(y[0]) + " " + str(x[1]) + " " + str(y[1]) + " " + str(x[2]) + " " + str(y[2]);
33 print s
35 print "0 0 0 0 0 0"